Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retrieve local ijk's of an LGR, given its name #828

Merged
merged 4 commits into from
Feb 6, 2025

Conversation

aritorto
Copy link
Member

@aritorto aritorto commented Jan 30, 2025

To facilitate output file generation, it is beneficial to retrieve the local IJK coordinates from each refined level grid based on its name.

Currently, inactive cells in LGRs are not supported in "opm-common." Nevertheless, an lgrIJK() test for a grid containing inactive cells within the LGR block has been added (and commented out). This case test passes if initLgr() is not invoked in opm-common/opm/input/eclipse/EclipseState/EclipseState.cpp.

@aritorto
Copy link
Member Author

jenkins build this please

@aritorto aritorto force-pushed the elemIdxToLocalIJK branch 2 times, most recently from 1a44eec to 482e329 Compare January 30, 2025 10:49
opm/grid/cpgrid/CpGrid.cpp Outdated Show resolved Hide resolved
opm/grid/cpgrid/CpGrid.cpp Outdated Show resolved Hide resolved
@aritorto
Copy link
Member Author

aritorto commented Jan 30, 2025

@blattms At some point, some methods related to refinement can be moved into CpGridUtilities, in case the header is kept

@aritorto
Copy link
Member Author

jenkins build this please

1 similar comment
@aritorto
Copy link
Member Author

jenkins build this please

@aritorto aritorto force-pushed the elemIdxToLocalIJK branch 2 times, most recently from 1db6f0a to bd231ba Compare January 31, 2025 12:45
@aritorto
Copy link
Member Author

jenkins build this please

@aritorto aritorto marked this pull request as draft February 3, 2025 07:25
@aritorto aritorto force-pushed the elemIdxToLocalIJK branch 2 times, most recently from 6fea239 to 24d41ea Compare February 3, 2025 14:52
@aritorto aritorto marked this pull request as ready for review February 3, 2025 14:53
@aritorto
Copy link
Member Author

aritorto commented Feb 3, 2025

jenkins build this please

@aritorto
Copy link
Member Author

aritorto commented Feb 3, 2025

@blattms if checks are green, then it's ready for review.

In the test file, I'm using the essentially the same deck_string only modifying the ACTNUM part. Is there a way to shorten the file using some methods to change the ACTNUM input in each case?

Copy link
Member

@blattms blattms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few comments and suggestions.

opm/grid/cpgrid/CpGridUtilities.cpp Outdated Show resolved Hide resolved
opm/grid/cpgrid/CpGridUtilities.cpp Outdated Show resolved Hide resolved
opm/grid/cpgrid/CpGridUtilities.hpp Outdated Show resolved Hide resolved
opm/grid/cpgrid/Entity.hpp Outdated Show resolved Hide resolved
tests/cpgrid/lgrIJK_test.cpp Show resolved Hide resolved
@aritorto
Copy link
Member Author

aritorto commented Feb 5, 2025

All comments have been addressed ready for a final check

@aritorto
Copy link
Member Author

aritorto commented Feb 5, 2025

jenkins build this please

@blattms
Copy link
Member

blattms commented Feb 5, 2025

I think jenkins will fail, running it anyway to prevent a breaking merge

@blattms
Copy link
Member

blattms commented Feb 5, 2025

jenkins build this please

Co-authored-by: Markus Blatt <[email protected]>
@aritorto
Copy link
Member Author

aritorto commented Feb 6, 2025

jenkins build this please

@aritorto
Copy link
Member Author

aritorto commented Feb 6, 2025

Thanks, @blattms. Now, it should not fail

@blattms blattms merged commit ca80de3 into OPM:master Feb 6, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants